package oop.a01oop.a02Polymorphism;

public class Cat extends Animal{


    public Cat() {
    }

    public Cat(int age, String color) {
        super(age, color);
    }

    public void eat(String something){
        System.out.println(getAge()+"岁的"+getColor()+"猫眯着眼睛在吃"+something);
    }

    public void catchMouse(){
        System.out.println("抓老鼠！");
    }
}
